package com.hmdp.utils;

/**
 * 获取锁和释放锁的接口
 */
public interface ILock {

    /**
     * 获取锁
     * @param timeOutSecKill
     */
    public boolean tryLock(Long timeOutSecKill);

    /**
     * 释放锁
     */
    public void unLock();

}
